package com.feicheng.persistence.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feicheng.persistence.entity.Order;
import com.feicheng.persistence.entity.OrderConsume;
import com.feicheng.persistence.model.OrderMain;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
public interface OrderMapper extends BaseMapper<Order> {
    Page<OrderMain> getOrdersByPage(Page<OrderMain> orderMainPage, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    List<OrderMain> getCalculateTimeMoney(@Param(Constants.WRAPPER) QueryWrapper queryWrapper);
}
